<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2021/8/27
  Time: 15:06
  To change this template use File | Settings | File Templates.
--%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <base href="<%=basePath%>"/>
    <title>Title</title>
</head>
<body>
<center>
    <h1>修改页面</h1>
    <hr>
    <form action="<%=basePath%>userController/update.do" method="post">
        <input type="hidden" name="idStr" value="${user.userId}">
        <table border="1">

            <tr>
                <td>名称：</td>
                <td><input type="text" name="username" value="${user.username}"></td>
            </tr>
            <tr>
                <td>密码</td>
                <td><input type="text" name="password" value="${user.password}"></td>
            </tr>
            <%--            <tr>--%>
            <%--                <td>生日</td>--%>
            <%--                <td><input type="text" name="birthday"></td>--%>
            <%--            </tr>--%>
            <tr>
                <td>性别</td>
                <td><input type="text" name="sex" value="${user.sex}"></td>
            </tr>
            <tr>
                <td>地址</td>
                <td><input type="text" name="address" value="${user.address}"></td>
            </tr>
            <tr>
                <td><input type="submit" value="修改">
                </td>
                <td><input type="reset" value="重置"></td>
            </tr>

        </table>
    </form>
</center>
</body>
</html>
